import Vue from 'vue';
import VueRouter from 'vue-router';
import UserLogin from '@/views/UserLogin.vue';
import NotFount from '@/views/NotFount.vue';
import HomePage from '@/views/HomePage.vue';

Vue.use(VueRouter);

const routes = [
  {
    path: '/login',
    component: UserLogin,
  },
  {
    path: '/',
    component: HomePage,
  },
  {
    path: '*',
    component: NotFount,
  },
];

const router = new VueRouter({
  routes,
});

export default router;
